<?php
class Model_Thumb extends ORM {

	protected $_table_name = 'thumbs';
	
	protected $_has_one = array(
		'image' => array(
			'model' => 'image',
			'foreign_key' => 'thumb_id',
			),
		);
	
	public function path() {
		return DOCROOT.$this->dir.$this->filename;
	}
}